package top.yxqz.spring.ioc.pojo;

/**
 * @author: 余小小
 * @date: 2023/4/6
 * @description：动物类
 */
public class Animal {
    private String color; //颜色
    private String giao;//叫声

    public Animal() {
    }

    public Animal(String color, String giao) {
        this.color = color;
        this.giao = giao;
    }

    /**
     * 获取
     *
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     *
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    /**
     * 获取
     *
     * @return giao
     */
    public String getGiao() {
        return giao;
    }

    /**
     * 设置
     *
     * @param giao
     */
    public void setGiao(String giao) {
        this.giao = giao;
    }

    public String toString() {
        return "Animal{color = " + color + ", giao = " + giao + "}";
    }
}
